package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="ZJZF_HZGL"
 *     
*/
public class ZjzfHzgl implements Serializable {

    /** identifier field */
    private String sqglbh;

    /** persistent field */
    private String sqdbh;

    /** persistent field */
    private String sqmxbh;

    /** nullable persistent field */
    private String sx;

    /** full constructor */
    public ZjzfHzgl(String sqglbh, String sqdbh, String sqmxbh, String sx) {
        this.sqglbh = sqglbh;
        this.sqdbh = sqdbh;
        this.sqmxbh = sqmxbh;
        this.sx = sx;
    }

    /** default constructor */
    public ZjzfHzgl() {
    }

    /** minimal constructor */
    public ZjzfHzgl(String sqglbh, String sqdbh, String sqmxbh) {
        this.sqglbh = sqglbh;
        this.sqdbh = sqdbh;
        this.sqmxbh = sqmxbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="SQGLBH"
     *         
     */
    public String getSqglbh() {
        return this.sqglbh;
    }

    public void setSqglbh(String sqglbh) {
        this.sqglbh = sqglbh;
    }

    /** 
     *            @hibernate.property
     *             column="SQDBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getSqdbh() {
        return this.sqdbh;
    }

    public void setSqdbh(String sqdbh) {
        this.sqdbh = sqdbh;
    }

    /** 
     *            @hibernate.property
     *             column="SQMXBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getSqmxbh() {
        return this.sqmxbh;
    }

    public void setSqmxbh(String sqmxbh) {
        this.sqmxbh = sqmxbh;
    }

    /** 
     *            @hibernate.property
     *             column="SX"
     *             length="10"
     *         
     */
    public String getSx() {
        return this.sx;
    }

    public void setSx(String sx) {
        this.sx = sx;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("sqglbh", getSqglbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof ZjzfHzgl) ) return false;
        ZjzfHzgl castOther = (ZjzfHzgl) other;
        return new EqualsBuilder()
            .append(this.getSqglbh(), castOther.getSqglbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSqglbh())
            .toHashCode();
    }

}
